package aqua.smile.api.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


@Data
@Accessors(chain = true)
@TableName("core_app")
@KeySequence("core_app_seq")
public class CoreApp extends Object implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId("pk_id")
    private Long pkId;

    @ApiModelProperty(value = "appId")
    @TableField("app_id")
    private String appId;

    @ApiModelProperty(value = "appSecret")
    @TableField("app_secret")
    private String appSecret;

    @ApiModelProperty(value = "app名称")
    @TableField("app_name")
    private String appName;

    @ApiModelProperty(value = "应用场景")
    @TableField("app_scene_id")
    private Long appSceneId;

    @ApiModelProperty(value = "加密签名类型 1.rsa")
    @TableField("es_type")
    private Long esType;

    @ApiModelProperty(value = "拓展json")
    @TableField("exp_json")
    private String expJson;

    @ApiModelProperty(value = "账套id")
    @TableField("ac_id")
    private Long acId;

    @ApiModelProperty(value = "产品id")
    @TableField("prod_id")
    private Long prodId;

    // ++++++ 系统拓展 +++++++
    @TableField(exist = false)
    private Map<String, String> query = new HashMap<>();

    // ++++++ 业务拓展 +++++++

    @ApiModelProperty(value = "产品id")
    @TableField(exist = false)
    private String prodName;

}
